﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Tintucdocnhieu.ascx.cs" Inherits="WebHousingInfo.Controls.Tintucdocnhieu" %>
<div id="khuvuc_200">
    <div class="title">TIN TỨC ĐỌC NHIỀU</div>
    <div class="content">
    <% var objectNews= HousingInfo.Library.NewsBOList.TinDocNhieuNhat(10);
        foreach(var obNews in objectNews)
            {%>
            <div class="data">
                <p>
                <img src="Images/icon_menuleft.gif">
                <a href="ChiTietTinTuc.aspx?idnews=<%=obNews.NewsID %>&idcate=<%=obNews.CategoryID %>"><%if (obNews.Title.Length > 48)
                      {%> <%=obNews.Title.Substring(0, 47)%> ...
                      <%}
                      else
                      {%>
                      <%=obNews.Title%>
                      <% }%>
                      </a></p>
            </div>
        <%}   
            %>     
    </div>    
</div>